﻿using System;

using Spencen.Mobile.Markup;
using Spencen.Mobile.Markup.Extensions;

namespace Spencen.Mobile.UI.Markup.Extensions
{
    public class TemplateBindingMarkupExtension : IMarkupExtension
    {
        #region IMarkupExtension Members

        public string ExtensionName { get { return "TemplateBinding"; } }

        public object Resolve( XamlNode context, Type expectedType, string args )
        {
            return new TemplateBinding( ( (XamlElement)context ).Type, args );
        }

        #endregion
    }
}
